package com.tedu.dao;

import java.util.List;
import java.util.Map;

import com.tedu.model.Product;

public interface IProductDao extends IBaseDao<Product> {
	public List<Product> listAllProduct();
	public Product productItem(int id);
	
	//          狄克
	public List<Product> listCategoryProduct(int id);
	public List<Product> selectProductsName(String str);
	public List<Product> selectProductsStatus(int str);
	public List<Product> selectProductsCategory(String str);
	public List<Product> selectProductsDiscount(Double str);
	
	/////////////////////////////////

	//新项目从下面开始
	public List<Product> listAllProductByFeature(int status);
	public List<Product> listAllProductOfDiscount();
	public List<Product> fuzzyQueryAll(Map<String, String> map);
	public List<Product> fuzzyQueryDiscountProducts(Map<String, String> map);
	public List<Product> fuzzyQueryByFeature(Map<String, Object> map);
	public List<Product> queryByCategory(int cid);
	public List<Product> fuzzyQueryByCategory(Map<String, Object> map);
	
}
